FROM 172.26.100.131/qa-space/qa-base

COPY daily_update /etc/cron.d/daily_update
COPY entrypoint.sh /entrypoint.sh

WORKDIR home

RUN apt-get update \
  && apt-get install -y cron --allow-unauthenticated\
  && chmod 0644 /etc/cron.d/daily_update \
  && chmod +x /QUANTAXIS/config/update_all.py \
  && crontab /etc/cron.d/daily_update \
  && chmod +x /entrypoint.sh

ENTRYPOINT ["/entrypoint.sh"]

CMD ["cron", "-f"]
